package com.hotlove.usercenter.controller;

import com.hotlove.tools.response.Result;
import com.hotlove.usercenter.domain.Profile;
import com.hotlove.usercenter.service.ProfileService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Auther: hotlove_linx
 * @Date: 2022/4/5 16:20
 * @Description:
 */
@RestController
@RequestMapping("/profile")
public class ProfileController {

    @Resource
    private ProfileService profileService;

    @PostMapping("/login")
    public Result login(String userName, String userPassword) {

        return Result.success(new Profile());
    }

    @GetMapping("/profile/{id}")
    public Profile queryProfile(@PathVariable("id") Long profileId) {
        return profileService.queryProfileById(1L);

    }

}
